Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


GetTimeBaseStopTime

You can determine the stop time of a time base by calling the GetTimeBaseStopTime function.

pascal TimeValue GetTimeBaseStopTime (TimeBase tb, TimeScale s,
                                        TimeRecord *tr);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
s
Specifies the time scale in which to return the stop time.
tr
Contains a pointer to a time structure that is to receive the stop time. This is an optional parameter. If you do not want the time value represented in a time structure, set this parameter to nil.
DESCRIPTION
The GetTimeBaseStopTime returns a time value that contains the stop time
from the specified time base in the specified time scale. The function returns this value even if you specify a time structure with the out parameter.

ERROR CODES
None

SEE ALSO
You can set the stop time of a time base by calling the SetTimeBaseStopTime function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996